    layui.use('rate', function () {
    var rate = layui.rate;

    //渲染
    var ins1 =
      rate.render({
        elem: '#test2',
        value: 4.5 //初始值
          ,
        theme: '#00a680',
        text: true //开启文本
          ,
        half: true
      });
  })
  layui.use('rate', function () {
    var rate = layui.rate;

    //渲染
    var ins1 =
      rate.render({
        elem: '#test3',
        value: 4.5 //初始值
          ,
        theme: '#00a680',
        text: true //开启文本
          ,
        half: true
      });
  })
  layui.use('rate', function () {
    var rate = layui.rate;

    //渲染
    var ins1 =
      rate.render({
        elem: '#test4',
        value: 4.5 //初始值
          ,
        theme: '#00a680',
        text: true //开启文本
          ,
        half: true
      });
  })
  layui.use('rate', function () {
    var rate = layui.rate;

    //渲染
    var ins1 =
      rate.render({
        elem: '#test5',
        value: 4.5 //初始值
          ,
        theme: '#00a680',
        text: true //开启文本
          ,
        half: true
      });
  })
  layui.use('rate', function () {
    var rate = layui.rate;

    //渲染
    var ins1 =
      rate.render({
        elem: '#test6',
        value: 4.5 //初始值
          ,
        theme: '#00a680',
        text: true //开启文本
          ,
        half: true
      });
  })
  layui.use('upload', function(){
    var upload = layui.upload;
     
    //执行实例
    var uploadInst = upload.render({
      elem: '#test1' //绑定元素
      ,url: '/upload/' //上传接口
      ,done: function(res){
        //上传完毕回调
      }
      ,error: function(){
        //请求异常回调
      }
    });
  });